<script>  
@var validates = tag.children;
@var tid=tag.id!tag.name;
@for(validate in validates ){
@var name = validate.name,msg = validate.info!'',min=validate.min,max=validate.max;
$('#${tid}').validateRegister('${name}', '${msg}',${min!"null"},${max!"null"});    	
@}
@ var validates2 = tag.validate;
@if(validates2!=null){
@	var vals =strutil.split(validates2,";");
@	for(val in vals){
$('#${tid}').validateRegister('${val}');
@	}
@}

</script>